import {baseUrl} from "../config.js"
function searchHot(){
	
	return uni.request({
		url:`${baseUrl}/search/hot/detail`,
		method:"GET",
		
		
	})
	
}
function searchWord(word){
	
	return uni.request({
		url:`${baseUrl}/search?keywords=${word}`,
		method:"GET",
	})	
}
function searchSuggest(word){
	
	return uni.request({
		url:`${baseUrl}/search/suggest?keywords=${word}&type=mobile`,
		method:"GET",
	})	
}

export default{
	searchHot,
	searchWord,
	searchSuggest
	
}